cmake_minimum_required(VERSION 3.5.1)
project(wmr_bezier_planner)

set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -O3 -Wall") # -Wextra -Werror

find_package(catkin REQUIRED COMPONENTS
        roscpp
        std_msgs
        nav_msgs
        visualization_msgs
        tf
        wmr_msgs
        insprobe_msgs
        )

find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
#set(OpenCV_DIR /home/jg/Downloads/opencv-3.4.5/my_build_dir)
#find_package(OpenCV REQUIRED)
#add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/sdf_tools)

set(Eigen3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})

#catkin_package() 应放在add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/sdf_tools)之后
#缺少该项则不会在在work_space/devel/lib中生成可执行文件
catkin_package()

include_directories(
        SYSTEM
        ${catkin_INCLUDE_DIRS}
        ${Eigen3_INCLUDE_DIRS}
        ${PCL_INCLUDE_DIRS}
)

add_subdirectory(${PROJECT_SOURCE_DIR}/btraj)
add_subdirectory(${PROJECT_SOURCE_DIR}/pos_generate)
add_subdirectory(${PROJECT_SOURCE_DIR}/wmr_nav)
